import Crawler from './script/Crawler';
import * as schedule from 'node-schedule';

/**
 * main 入口
 * 
 * 
 */
function main() {
  const crawler = new Crawler();
  crawler.start("https://www.sge.com.cn/");
  schedule.scheduleJob('0 30 7 * * *',()=>{
    crawler.start("https://www.sge.com.cn/");
    console.log('scheduleCronstyle:' + new Date());
  }); 
}

main();
